import instance from '../util/request'


/** 
 * 获取会话列表
 * @returns 
 */
export const sessionList=()=>{
  return instance.get('/session/list')
}

/**
 * 删除会话
 * @param {*} token 
 * @returns 
 */
export const delSession=(token)=>{
  return instance.delete(`/session/${token}`)
}